/**
 * 
 */
package ua.lviv.franko.mlsFunctions.oneDimension;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * @author marko
 * 
 */
public class ParticleList implements Iterable<Particle> {

	private ArrayList<Particle>	list;

	public ParticleList() {
		list = new ArrayList<Particle>();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Iterable#iterator()
	 */
	@Override
	public Iterator<Particle> iterator() {
		if (list != null) {
			return list.iterator();
		}
		return null;
	}

}
